import request from '@/utils/request'

// 查询转赠记录列表
export function listLog(query) {
  return request({
    url: '/system/log/list',
    method: 'get',
    params: query
  })
}

// 查询转赠记录详细
export function getLog(transferId) {
  return request({
    url: '/system/log/' + transferId,
    method: 'get'
  })
}

// 统计转赠记录数据--首页
export function totalTransferRecord(startTime,endTime) {
  return request({
    url: '/system/log/totalTransferRecord',
    method: 'get',
    params: {
      startTime: startTime,
      endTime:endTime
    }
  })
}

// 统计转赠记录数据--首页
export function totalTransferList(row) {
  return request({
    url: '/system/log/totalTransferList',
    method: 'post',
    data: row
  })
}



// 新增转赠记录
export function addLog(data) {
  return request({
    url: '/system/log',
    method: 'post',
    data: data
  })
}

// 修改转赠记录
export function updateLog(data) {
  return request({
    url: '/system/log',
    method: 'put',
    data: data
  })
}

// 删除转赠记录
export function delLog(transferId) {
  return request({
    url: '/system/log/' + transferId,
    method: 'delete'
  })
}